package com.soulkun.smarthome.ui.splash.login.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.soulkun.smarthome.logic.model.ResponseModel
import com.soulkun.smarthome.logic.model.LoginModel
import com.soulkun.smarthome.logic.repository.ApiRepository

class AppSplashLoginViewModel: ViewModel() {

//    private var loginLiveData = MutableLiveData<Result<ResponseModel<TokenModel>>>

    val usernameEditLiveData = MutableLiveData<String>("")
    val passwordEditLiveData = MutableLiveData<String>("")

    fun login(username: String, password: String): LiveData<Result<ResponseModel<LoginModel>>> {
        return ApiRepository.login(username, password)
    }

}